﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using MyFloridaHouse.libSvDTO;

namespace MyFloridaHouse.libSTO
{
	/// <summary>
	/// Layer Field Data STO (server transfer object)
	/// </summary>
    [DataContract]
    public class LayerFieldDataSTO
    {

        List<LayerFieldDataDTO> _layerFieldDataList;
        string _errorMessage;

		/// <summary>
		/// Initializes a new instance of the <see cref="LayerFieldDataSTO"/> class.
		/// </summary>
        public LayerFieldDataSTO()
        {
            _layerFieldDataList = new List<LayerFieldDataDTO>();
            _errorMessage = "";
        }

		/// <summary>
		/// Gets or sets the layer field data list.
		/// </summary>
		/// <value>The layer field data list.</value>
        [DataMember]
        public List<LayerFieldDataDTO> layerFieldDataList
        {
            get { return _layerFieldDataList; }
            set { _layerFieldDataList = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }

    }
}
